<?php 
session_start();
include_once '../config.php';
list($usrID,$recID)=array(intval($_SESSION['usrID']),intval($_GET['recID']));
$res=$pdo->query("select * from typing where usrID=$recID and recID=$usrID and status=1");
echo $res->rowCount();
?>